package wireless.test;

public class MyLogger {
	private static MyLogger sMyLogger = null;
	private int mLevel = 0;
	
	public void setLevel(int level) {
		mLevel = level;
	}
	
	private MyLogger(){}
	
	public static MyLogger getInstance() {
		if(sMyLogger == null)
			sMyLogger = new MyLogger();
		return sMyLogger;
	}
	
	public void log(String str){
		if(0 == mLevel)
			System.out.println(str);
	}
}
